package com.hngtrust.iir.elk.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author Chaidd
 */
@ApiModel(description = "行业资讯检索响应数据")
@Data
public class IndustryNewsInfoResp {

    @ApiModelProperty(value = "索引ID", dataType = "String")
    private String elkId;

    @ApiModelProperty(value = "索引类型", dataType = "String")
    private String elkType;

    @ApiModelProperty(value = "索引名称", dataType = "String")
    private String elkIndex;

    @ApiModelProperty(value = "CLICKHOUSE数据库ID", dataType = "String")
    private String clickHouseId;

    @ApiModelProperty(value = "进入ELK时间", dataType = "String")
    private Date currentTime;

    @ApiModelProperty(value = "标题", dataType = "String")
    private String title;

    @ApiModelProperty(value = "发布时间", dataType = "Date")
    private Date publishTime;

    @ApiModelProperty(value = "内容", dataType = "String")
    private String content;

    @ApiModelProperty(value = "简短内容", dataType = "String")
    private String shortContent;

    @ApiModelProperty(value = "标签", dataType = "Set")
    private Set<String> tags;

    @ApiModelProperty(value = "自定义标签", dataType = "Set")
    private Set<String> selfTags;

    @ApiModelProperty(value = "行业ID", dataType = "Long")
    private Long industryId;

    @ApiModelProperty(value = "行业名称", dataType = "String")
    private String industryName;

    @ApiModelProperty(value = "公司名称", dataType = "Set")
    private Set<Map<String,Object>> compNames;

    @ApiModelProperty(value = "文章情感", dataType = "String")
    private String sentiment;

    @ApiModelProperty(value = "来源", dataType = "String")
    private String source;

    @ApiModelProperty(value = "排序码", dataType = "List")
    private List<String> sort;

    @ApiModelProperty(value = "关键词", dataType = "String")
    private String keyWords;

    /**
     * 是否已收藏
     * 是否 1是 0否
     */
    @ApiModelProperty(value = "是否已收藏 1是 0否")
    private Integer collect;

}
